package com.plm.mall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Limi
 * @create 2019-04-25 22:46
 */
@Controller
public class MallController {

    @GetMapping("/")
    public String index(ModelMap map){
        map.addAttribute("hello", "世界你好！");
        return "index";
    }

    @GetMapping("/login")
    public String login(){
        return "login";
    }

}
